package com.ys.enume.finance;

public class TcwUserPointRunningEnum {
	
	public enum Type {
		BUY_ORDER("兑换礼品", 1),
		SIGN("签到", 2),
		SIGN_CONTINUE("连续签到", 3),
		TRANSFER_FROM("划拨单扣除", 4),
		TRANSFER_TO("划拨单到账", 5),
		AMAZONORDER_REWARD_NORMAL("普品订单奖励", 6),
		AMAZONORDER_REWARD_JINGPIN("精品订单奖励", 7),
		ALLOT_JINGPIN("精品调拨奖励", 8),
		FIRST_REIMBURSE("首次报销奖励", 9),
		SHOP_REGIST_REWARD("店铺注册跟踪奖励", 10),
		REWARD_PUNISH_ADD("奖罚单奖励", 11),
		REWARD_PUNISH_REDUCE("奖罚单处罚", 11);
//		JIAO_WU_CHU("教务处收支", 99999); // 教务处收支统一按照用户类型+100计算
		public String name;
		public Integer value;

		private Type(String name, Integer value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(int value) {
			for (Type e : Type.values()) {
				if (e.value == value) {
					return e.name;
				}
			}

			return "";
		}
	}
}
